import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import 'normalize.css'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import '@/utils/router-err' // 路由重复导航报错问题
import AllChannels from '@/components/AllChannels/AllChannels'

// import '@/utils/use-element-ui' // 按需注册 element-ui 组件
Vue.use(ElementUI) // 全局注册 element-ui

// 注册全局组件
Vue.component('AllChannels', AllChannels)

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')
